﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Wp.DAL;
using Wp.BLL;

public partial class Controls_Focus : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadData();
        }
   
    }
    void LoadData()
    {
        int numberitemtag = Wp.BLL.TblOptionManager.CreateInstant().GetOption("number-items-focus").Trim().ToInt();
        List<TblPostsEntity> ls = TblPostsManager.CreateInstant().SelectTblPostByTags("NH", 7);
        rpt.DataSource = ls;
        rpt.DataBind();
        rpt2.DataSource = ls;
        rpt2.DataBind();
    }
}